package com.foreveross.proxyip.entity;

import javax.persistence.*;

import com.foreveross.proxyip.infra.base.ddd.domain.BaseEntity;
import com.foreveross.proxyip.infra.cache.IBufferCacheEntity;

import java.util.Date;


/**
 * The persistent class for the pi_ip_store_tmp database table.
 * 
 */
@Entity
@Table(name="pi_ip_store_tmp")
public class IpStoreTmpEntity  extends BaseEntity  implements IBufferCacheEntity {
	private static final long serialVersionUID = 1L;

	private String area;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="create_time")
	private Date createTime;
    @Id
	private String id;

	private String ip;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="last_time")
	private Date lastTime;

	private Integer port;

	@Column(name="response_time")
	private Integer responseTime;

	private Integer state;

	private String source;

    public IpStoreTmpEntity() {
    }

	public String getArea() {
		return this.area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public Date getLastTime() {
		return this.lastTime;
	}

	public void setLastTime(Date lastTime) {
		this.lastTime = lastTime;
	}

	public Integer getPort() {
		return this.port;
	}

	public void setPort(Integer port) {
		this.port = port;
	}

	public Integer getResponseTime() {
		return this.responseTime;
	}

	public void setResponseTime(Integer responseTime) {
		this.responseTime = responseTime;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}
	
	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

}